package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

@Data
public class ApiShopAddDto {

    /**
     * 店铺名称
     */
    @NotNull(message = "店铺名称不能为空")
    @ApiModelProperty(value = "店铺名称", dataType = "String", required = true)
    @Size(min = 1, max = 30, message = "店铺名称(1-30)")
    private String name;

    /**
     * 店铺LOGO
     */
    @ApiModelProperty(value = "店铺LOGO", dataType = "String", required = true)
    private String logo;

    /**
     * 营业执照图片(json格式）
     */
    @ApiModelProperty(value = "营业执照图片(json格式）", dataType = "String", required = true)
    private String licensePicture;

    /**
     * 店铺地址
     */
    @ApiModelProperty(value = "店铺地址", dataType = "String", required = true)
    @Size(min = 1, max = 300, message = "店铺名称(1-300)")
    private String shopAddress;

    /**
     * 取货地址
     */
    @ApiModelProperty(value = "取货地址", dataType = "String", required = true)
    @Size(min = 1, max = 300, message = "店铺名称(1-300)")
    private String pickAddress;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式", dataType = "String", required = true)
    @Size(min = 1, max = 13, message = "店铺名称(1-13)")
    private String mobile;

    /**
     * 配送范围
     */
    @ApiModelProperty(value = "配送范围", dataType = "BigDecimal", required = false)
    private BigDecimal sendRange;
    /**
     * 配送时间
     */
    @ApiModelProperty(value = "配送时间(分)", dataType = "Integer", required = false)
    private Integer time;

    /**
     * 分润比例
     */
    @ApiModelProperty(value = "分润比例(0到1 小数两位)", dataType = "BigDecimal", required = false)
    private BigDecimal bl;

    /**
     * 起送价格
     */
    @ApiModelProperty(value = "起送价格", dataType = "BigDecimal", required = false)
    private BigDecimal sendPrice;


    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名", dataType = "String", required = true)
    @Size(min = 1, max = 30, message = "店铺名称(1-30)")
    private String realName;

    /**
     * 微信收款二维码
     */
    @ApiModelProperty(value = "微信收款二维码", dataType = "String", required = false)
    private String wxPayUrl;

    /**
     * 店铺评分(0-5)
     */
    @ApiModelProperty(value = "店铺评分(0-5)", dataType = "Integer", required = false)
    private Integer stars;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", dataType = "BigDecimal", required = true)
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度", dataType = "BigDecimal", required = true)
    private BigDecimal latitude;

    /**
     * 法人身份证件 正反面(json格式）
     */
    @ApiModelProperty(value = "法人身份证件 正反面(json格式）", dataType = "String", required = true)
    private String legalPersonLicense;

    /**
     * 法人身份证号
     */
    @ApiModelProperty(value = "法人身份证号", dataType = "String", required = true)
    @Size(min = 18, max = 19, message = "格式不正确")
    private String legalPersonIdentityNumber;

    /**
     * 销售数量
     */
    @ApiModelProperty(value = "销售数量", dataType = "Integer", required = false)
    private Integer sales;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String", required = false)
    private String remarks;


}
